package com.suyl.candy.impexcel.entity;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.format.DateTimeFormat;
import com.suyl.candy.impexcel.converter.CatgroyConverter;
import com.suyl.candy.impexcel.converter.TypeConverter;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

/**
 * @author suyanlong
 * @version 1.0
 * @createDate 2020/4/17 22:32
 */
@Data
public class Money {
    /**
     * 日期
     */
    @ExcelProperty(value = "日期")
    @DateTimeFormat("yyyy-MM-dd")
    private Date date;
    /**
     * 类别
     */
    @ExcelProperty(value = "类别", converter = CatgroyConverter.class)
    private String catgroy;
    /**
     * 谁花
     */
    @ExcelProperty(value = "谁花"/*, converter = GenderConverter.class*/)
    private String name;
    /**
     * 类型
     */
    @ExcelProperty(value = "类型", converter = TypeConverter.class)
    private String type;
    /**
     * 项目
     */
    @ExcelProperty(value = "项目")
    private String project;
    /**
     * 备注
     */
    @ExcelProperty(value = "备注")
    private String remark;
    /**
     * 金额
     */
    @ExcelProperty(value = "金额")
    private BigDecimal money;
}
